/*
 * Copyright (C) 2008-2011 University of Deusto
 * 
 * All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.
 * 
 * This software consists of contributions made by many individuals, 
 * listed below:
 *
 * Author: Aitor Gómez Goiri <aitor.gomez@deusto.es>
 */
package otso.se.network.sockets.communication.abstraction.client;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ClientResourceFactory {
	final ExecutorService executor = Executors.newFixedThreadPool(10); // for example
	
	public ClientResource createClientResource(String originalURL, long timeout) {
		final ClientResource cl = new ClientResource(originalURL, timeout);
		cl.useExecutor(executor);
		return cl;
	}
}